import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 描述
 */
@Entity('app_school')
export class SchoolEntity extends BaseEntity {
    @Column({ comment: '名称' })
    name: string;

    @Column({ comment: 'URL' })
    url: string;

    @Column({ comment: '图片' })
    icon: string;

    @Column({ comment: '系统 0:正方 1:其他', default: 0, type: 'tinyint' })
    sysType: number;

    @Column({ comment: '登录 0:默认 1:方式Ⅰ', default: 0, type: 'tinyint' })
    loginType: number;

    @Column({ comment: '状态 0:禁用 1:启用', default: 1, type: 'tinyint' })
    status: number;
}
